<div id="menu_content" class="content_menu">
  <ul>
    <% if controller.action_name != 'new' && controller.action_name != 'edit' %>
      <li><%= link_to t(:create_y, :y => TimeUnit.human_name), new_time_unit_path %></li>
    <% end %>
    <% if controller.action_name == 'show' %>
      <li><%= link_to t(:edit_x, :x => TimeUnit.human_name), edit_time_unit_path(@time_unit) %></li>
      <li><%= link_to t(:delete_x, :x => TimeUnit.human_name), @time_unit, :confirm => t(:prompt_delete_x, :x =>  @time_unit.name), :method => :delete %></li>
    <% end %>
    <% if controller.action_name != 'index' %>
      <li><%= link_to t(:back_to_index), time_units_path %></li>
    <% end %>
  </ul>
</div>

<div class="spacer"></div>